package com.zzx.boot.constant;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/7 23:31
 */
public class Regex {
    // 手机号
    public final static String PHONE_REGEX ="^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";
    // 邮箱
    public final static String EMAIL_REGEX ="^([a-zA-Z\\d][\\w-]{2,})@(\\w{2,})\\.([a-z]{2,})(\\.[a-z]{2,})?$";

}
